<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	if (!(boolean)session.getAttribute("adminLogin")) {
		String path = request.getContextPath() + "/Admin/login.jsp";
		response.sendRedirect(path);
	}
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
<style type="text/css">
<!--
body {
	margin: 0px;
	background: url("./images/left.gif");
}
-->
</style>
<link href="./css/css.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
	function tupian(idt) {
		var nametu = "xiaotu" + idt;
		var tp = document.getElementById(nametu);
		tp.src = "images/ico05.gif";//图片ico04为白色的正方形

		for (var i = 1; i < 30; i++) {
			if (i != idt * 1) {
				var tp2 = document.getElementById('xiaotu' + i);
				if (tp2 != undefined) {
					tp2.src = "images/ico06.gif";
				}//图片ico06为蓝色的正方形
			}
		}
	}

	function list(idstr) {
		var name1 = "subtree" + idstr;
		var name2 = "img" + idstr;
		var objectobj = document.all(name1);
		var imgobj = document.all(name2);

		//alert(imgobj);

		if (objectobj.style.display == "none") {
			for (var i = 1; i < 10; i++) {
				var name3 = "img" + i;
				var name = "subtree" + i;
				var o = document.all(name);
				if (o != undefined) {
					o.style.display = "none";
					var image = document.all(name3);
					//alert(image);
					image.src = "images/ico04.gif";
				}
			}
			objectobj.style.display = "";
			imgobj.src = "images/ico03.gif";
		} else {
			objectobj.style.display = "none";
			imgobj.src = "images/ico04.gif";
		}
	}
</script>
</head>
<%
	String str = session.getAttribute("admin").toString();
%>
<body>
	<table width="198" border="0" cellpadding="0" cellspacing="0"
		class="left-table01">
		<tr>
			<td>
				<table width="100%" border="0" cellpadding="0" cellspacing="0">
					<tr>
						<td width="207" height="55" background="images/nav01.gif">
							<table width="90%" border="0" align="center" cellpadding="0"
								cellspacing="0">
								<tr>
									<td width="25%" rowspan="2"><img src="images/ico02.gif"
										width="35" height="35" alt="" /></td>
									<td width="75%" height="22" class="left-font01">您好，<span
										class="left-font02"><%=str%></span></td>
								</tr>
								<tr>
									<td height="22" class="left-font01">[&nbsp;<a
										href="../AdminServlet?action=logout" target="_top"
										class="left-font01">退出</a>&nbsp;]
									</td>
								</tr>
							</table>
						</td>
					</tr>
				</table>
				<table width="100%" border="0" cellpadding="0" cellspacing="0"
					class="left-table03">
					<tr>
						<td height="29">
							<table width="85%" border="0" align="center" cellpadding="0"
								cellspacing="0">
								<tr>
									<td width="8%"><img name="img8" id="img8"
										src="images/ico04.gif" width="8" height="11" alt="" /></td>
									<td width="92%"><a href="javascript:" target="mainFrame"
										class="left-font03" onclick="list('8');">管理员</a></td>
								</tr>
							</table>
						</td>
					</tr>
				</table>
				<table id="subtree8" style="DISPLAY: none" width="80%" border="0"
					align="center" cellpadding="0" cellspacing="0" class="left-table02">
					<tr>
						<td width="9%" height="21"><img id="xiaotu21"
							src="images/ico06.gif" width="8" height="12" alt="" /></td>
						<td width="91%"><a href="../AdminServlet?action=listAdmin"
							target="mainFrame" class="left-font03" onclick="tupian('21');">管理员信息查看</a></td>
					</tr>
				</table>
				<table width="100%" border="0" cellpadding="0" cellspacing="0"
					class="left-table03">
					<tr>
						<td height="29">
							<table width="85%" border="0" align="center" cellpadding="0"
								cellspacing="0">
								<tr>
									<td width="8%"><img name="img7" id="img7"
										src="images/ico04.gif" width="8" height="11" alt="" /></td>
									<td width="92%"><a href="javascript:" target="mainFrame"
										class="left-font03" onclick="list('7');">会员管理</a></td>
								</tr>
							</table>
						</td>
					</tr>
				</table>
				<table id="subtree7" style="DISPLAY: none" width="80%" border="0"
					align="center" cellpadding="0" cellspacing="0" class="left-table02">
					<tr>
						<td width="9%" height="20"><img id="xiaotu17"
							src="images/ico06.gif" width="8" height="12" alt="" /></td>
						<td width="91%"><a href="../UserServlet?action=listUser"
							target="mainFrame" class="left-font03" onclick="tupian('17');">会员信息查看</a></td>
					</tr>
				</table> 



				<table width="100%" border="0" cellpadding="0" cellspacing="0"
					class="left-table03">
					<tr>
						<td height="29">
							<table width="85%" border="0" align="center" cellpadding="0"
								cellspacing="0">
								<tr>
									<td width="8%"><img name="img1" id="img1"
										src="images/ico04.gif" width="8" height="11" alt="" /></td>
									<td width="92%"><a href="javascript:" target="mainFrame"
										class="left-font03" onclick="list('1');">商品类别管理</a></td>
								</tr>
							</table>
						</td>
					</tr>
				</table>
				<table id="subtree1" style="DISPLAY: none" width="80%" border="0"
					align="center" cellpadding="0" cellspacing="0" class="left-table02">
					<tr>
						<td width="9%" height="20"><img id="xiaotu1"
							src="images/ico06.gif" width="8" height="12" alt="" /></td>
						<td width="91%"><a href="../TypeServlet?action=add1"
							target="mainFrame" class="left-font03" onclick="tupian('1');">添加一级分类</a></td>
					</tr>
					<tr>
						<td width="9%" height="20"><img id="xiaotu4"
							src="images/ico06.gif" width="8" height="12" alt="" /></td>
						<td width="91%"><a href="../TypeServlet?action=add2" target="mainFrame"
							class="left-font03" onclick="tupian('4');">添加二级分类</a></td>
					</tr>
					<tr>
						<td width="9%" height="20"><img id="xiaotu2"
							src="images/ico06.gif" width="8" height="12" alt="" /></td>
						<td width="91%"><a href="../TypeServlet?action=list" target="mainFrame"
							class="left-font03" onclick="tupian('2');">商品类别查看</a></td>
					</tr>
				</table> 
				<table width="100%" border="0" cellpadding="0" cellspacing="0"
					class="left-table03">
					<tr>
						<td height="29"><table width="85%" border="0" align="center"
								cellpadding="0" cellspacing="0">
								<tr>
									<td width="8%" height="12"><img name="img2" id="img2"
										src="images/ico04.gif" width="8" height="11" alt="" /></td>
									<td width="92%"><a href="javascript:" target="mainFrame"
										class="left-font03" onclick="list('2');">商品管理</a></td>
								</tr>
							</table></td>
					</tr>
				</table>

				<table id="subtree2" style="DISPLAY: none" width="80%" border="0"
					align="center" cellpadding="0" cellspacing="0" class="left-table02">

					<tr>
						<td width="9%" height="20"><img id="xiaotu7"
							src="images/ico06.gif" width="8" height="12" alt="" /></td>
						<td width="91%"><a href="../ProductServlet?action=addPro"
							target="mainFrame" class="left-font03" onclick="tupian('7');">添加商品</a></td>
					</tr>
					<tr>
						<td width="9%" height="20"><img id="xiaotu7"
							src="images/ico06.gif" width="8" height="12" alt="" /></td>
						<td width="91%"><a href="../ProductServlet?action=proList"
							target="mainFrame" class="left-font03" onclick="tupian('17');">商品信息查看</a></td>
					</tr>
				</table> 
				<table width="100%" border="0" cellpadding="0" cellspacing="0"
					class="left-table03">
					<tr>
						<td height="29"><table width="85%" border="0" align="center"
								cellpadding="0" cellspacing="0">
								<tr>
									<td width="8%" height="12"><img name="img3" id="img3"
										src="images/ico04.gif" width="8" height="11" alt="" /></td>
									<td width="92%"><a href="javascript:" target="mainFrame"
										class="left-font03" onclick="list('3');">订单管理</a></td>
								</tr>
							</table></td>
					</tr>
				</table>

				<table id="subtree3" style="DISPLAY: none" width="80%" border="0"
					align="center" cellpadding="0" cellspacing="0" class="left-table02">
					<tr>
						<td width="9%" height="20"><img id="xiaotu8"
							src="images/ico06.gif" width="8" height="12" alt="" /></td>
						<td width="91%"><a href="../OrderServlet?action=orderList"
							target="mainFrame" class="left-font03" onclick="tupian('8');">订单信息查看</a></td>
					</tr>
				</table> 
				<table width="100%" border="0" cellpadding="0" cellspacing="0"
					class="left-table03">
					<tr>
						<td height="29"><table width="85%" border="0" align="center"
								cellpadding="0" cellspacing="0">
								<tr>
									<td width="8%" height="12"><img name="img4" id="img4"
										src="images/ico04.gif" width="8" height="11" alt="" /></td>
									<td width="92%"><a href="javascript:" target="mainFrame"
										class="left-font03" onclick="list('4');">评论管理</a></td>
								</tr>
							</table></td>
					</tr>
				</table>

				<table id="subtree4" style="DISPLAY: none" width="80%" border="0"
					align="center" cellpadding="0" cellspacing="0" class="left-table02">
					<tr>
						<td width="9%" height="20"><img id="xiaotu11"
							src="images/ico06.gif" width="8" height="12" alt="" /></td>
						<td width="91%"><a href="../CommentServlet?action=list"
							target="mainFrame" class="left-font03" onclick="tupian('11');">评论信息查看</a></td>
					</tr>
				</table> 
				<table width="100%" border="0" cellpadding="0" cellspacing="0"
					class="left-table03">
					<tr>
						<td height="29"><table width="85%" border="0" align="center"
								cellpadding="0" cellspacing="0">
								<tr>
									<td width="8%"><img name="img5" id="img5"
										src="images/ico04.gif" width="8" height="11" alt="" /></td>
									<td width="92%"><a href="javascript:" target="mainFrame"
										class="left-font03" onclick="list('5');">留言反馈</a></td>
								</tr>
							</table></td>
					</tr>
				</table>

				<table id="subtree5" style="DISPLAY: none" width="80%" border="0"
					align="center" cellpadding="0" cellspacing="0" class="left-table02">
					<tr>
						<td width="9%" height="20"><img id="xiaotu13"
							src="images/ico06.gif" width="8" height="12" alt="" /></td>
						<td width="91%"><a href="../MessageServlet?action=messageList" target="mainFrame"
							class="left-font03" onclick="tupian('13');">查看留言</a></td>
					</tr>
				</table> 
				 <table width="100%" border="0" cellpadding="0" cellspacing="0"
					class="left-table03">
					<tr>
						<td height="29"><table width="85%" border="0" align="center"
								cellpadding="0" cellspacing="0">
								<tr>
									<td width="8%"><img name="img6" id="img6"
										src="images/ico04.gif" width="8" height="11" alt="" /></td>
									<td width="92%"><a href="javascript:" target="mainFrame"
										class="left-font03" onclick="list('6');">地址簿管理</a></td>
								</tr>
							</table></td>
					</tr>
				</table>
				<table id="subtree6" style="DISPLAY: none" width="80%" border="0"
					align="center" cellpadding="0" cellspacing="0" class="left-table02">
					<tr>
						<td width="9%" height="20"><img id="xiaotu15"
							src="images/ico06.gif" width="8" height="12" alt="" /></td>
						<td width="91%"><a href="../AddressServlet?action=addressList" target="mainFrame"
							class="left-font03" onclick="tupian('15');">查看地址簿</a></td>
					</tr>
				</table> 
			</td>
		</tr>

	</table>
</body>
</html>